package com.tencent.albert.weixin.driver.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by albertzhu on 15/2/15.
 */
public class JspLogger {
    private static Logger logger = LoggerFactory.getLogger(JspLogger.class);

    public static void debug(String tag, String msg, Throwable e) {
        if (null == e) {
            logger.debug(tag+"-"+msg,e);
        } else {
            logger.debug(tag+"-"+msg);
        }
    }

    public static void info(String tag, String msg, Throwable e) {
        if (null == e) {
            logger.info(tag+"-"+msg, e);
        } else {
            logger.info(tag+"-"+msg);
        }
    }
}
